package ca.swank.hardquor;

import javax.swing.*;


public class hardquorPlayerNumberSelect extends JComboBox
{
  public hardquorPlayerNumberSelect()
  { super();
    addItem(new wrappedPlayerNumber("First",0));
    addItem(new wrappedPlayerNumber("Second",1));
  }

  public int getValue()
  { return ((wrappedPlayerNumber)getSelectedItem()).getValue();
  }

}


class wrappedPlayerNumber
{
  public String name;
  public int value;

  public wrappedPlayerNumber(String name, int value)
  { this.name = name;
    this.value = value;
  }

  public int getValue()
  { return value;
  }

  public String toString()
  { return name;
  }

}
